<%var obj={pageTitle:"新增学生列表"}%>
{{include "../header.html" obj}}
<div class="container">
    {{include "../pageHeader.html" obj}}
    <form class="form-horizontal" method="POST" action="/Stu_h1802/doAddStudent" enctype="application/x-www-form-urlencoded">
        {{each objArr item index}}
        <% var obj={item:item}%>
        {{if item[1]=="性别"}}
        <div class=" form-group">
            <label for="" class=" control-label col-sm-2">{{item[1]}}</label>
            <div class="col-sm-7">
                <select class="form-control" name="{{item[0]}}">
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
        </div>
        {{else}}
        {{include "../bs_view/form-group-input.html" obj}}
        {{/if}}
        {{/each}}
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-7">
                <button type="submit" class="btn btn-primary btn-submit-loading">保存数据</button>
                <button type="reset" class="btn btn-info">重置数据</button>
            </div>
        </div>
    </form>
</div>
<script>
    $(function(){
        $("input.form-control").addTips();
    })
</script>
{{include "../footer.html"}}